import sys
sys.path.append ("../../..")
from scim import SCTC

def main ():
	for line in sys.stdin:
		uline = unicode (line, "utf8")
		if SCTC.is_scstring (uline):
			print line,

if __name__ == "__main__":
	main ()
